package com.hwd.srb.adapter;

import org.springframework.lang.Nullable;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @author 黄伟东/Victor
 * @date 2022/3/31 22:26
 * @Description Adapter接口
 */
public interface AmountHelperAdapter {

    public boolean supports(Object amountHelper);

    @Nullable
    BigDecimal getInterestCount(BigDecimal invest, BigDecimal yearRate, int totalMonth);

    @Nullable
    Map<Integer, BigDecimal> getPerMonthPrincipal(BigDecimal invest, BigDecimal yearRate, int totalMonth);

    @Nullable
    Map<Integer, BigDecimal> getPerMonthInterest(BigDecimal invest, BigDecimal yearRate, int totalMonth);
}
